﻿@using INNOVACALL.Framework.Common
@using InnovaApp.Layers.ResourcesLayer.Properties
@{
	InnovaApp.Layers.CommonLayer.Models._Models_Base layoutModel = (InnovaApp.Layers.CommonLayer.Models._Models_Base)Model;
}
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width" />
	@foreach (var item in layoutModel._Meta)
	{ 
		<meta name="@item.Key.ToString()" content="@item.Value" />
	}
	<title>@layoutModel._PageTitle</title>
	<link href="@Url.Content("~/CSSG/Site.css")" rel="stylesheet" type="text/css" />
	<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	@Scripts.Render("~/bundles/modernizr")
	@if (layoutModel._SpecificCSS != null)
	{
		foreach (var cssReference in layoutModel._SpecificCSS)
		{ 
		<link href="@Url.Content("~/Content/" + cssReference)" rel="stylesheet" type="text/css" />
		}
	}
	@if (layoutModel._ExternalCSS != null)
	{
		foreach (var cssReference in layoutModel._ExternalCSS)
		{ 
		<link href="@cssReference" rel="stylesheet" type="text/css" />
		}
	}
	@foreach (var jsReference in layoutModel._SpecificJS)
	{ 
		<script src="@Url.Content("~/Scripts/" + jsReference)" type="text/javascript"></script>
	}
</head>
<body>
	<div class="content-wrapper full-height page shadow">
		<header>
			<div class="content-wrapper">
				<div class="float-left">
					<a href="/" title="Home">
						<img src="../../Images/LogoInnovacall.png" alt="Innovacall MVC Framework" class="LogoInnovacall" />
						<img src="../../Images/ASPNetOpenSourceFramework.png" alt="Innovacall ASP.net Open Source Framework"
							class="LogoInnovacallMVCFramework" />
					</a>
				</div>
				<div class="float-right">
					<section id="login">
						@Html.Partial("_LoginPartial")
					</section>
					<a href="http://www.microsoft.com/bizspark/" title="Microsoft Bizspark" target="_blank">
						<img src="../../Images/BizSpark_Alumini.png" alt="Innovacall ASP.net Open Source Framework"
							class="MicrosoftBizSparkAlumini" />
					</a>
				</div>
			</div>
		</header>
		<div id="body" class="content-wrapper rounded">
			@if (layoutModel._DisplayMenus)
			{ 
				<nav class="content-wrapper k-content">
					@Html.Partial("_MenuBar", layoutModel)
				</nav>
			}
			@RenderSection("featured", required: false)
			<section class="content-wrapper main-content clear-fix">
				@RenderBody()
			</section>
		</div>
		<footer>
			<div class="content-wrapper">
				<table class="tblFooter">
					<tr>
						<td class="tdCopyright">
							&copy; @DateTime.Now.Year - Innovacall
						</td>
						<td class="tdCodeplex">
							source code : <a href="http://innovacallframework.codeplex.com" target="_blank">http://innovacallframework.codeplex.com</a>
						</td>
						<td class="tdContactUs">
							<a href="mailto:innovacallframework@innovacall.com">Contact us</a>
						</td>
					</tr>
				</table>
			</div>
		</footer>
	</div>
	<!--KendoUI Add-->
	<style scoped>
		#customValue
		{
			line-height: 16px;
			width: 60px;
			float: none;
			margin: -3px 0 0 5px;
		}
	</style>
	<!--/KendoUI Add-->
	<div id="dialogMessage">
	</div>
</body>
<script src="/Scripts/InnovacallJS/_Layout/_Layout.js" type="text/javascript"></script>
@if (layoutModel._SpecificJqueryJS != null)
{
	foreach (var specificJqueryJSReference in layoutModel._SpecificJqueryJS)
	{
		string prefix = string.Empty;
		if (!specificJqueryJSReference.StartsWith("http"))
		{
			prefix = "~/Scripts/";
		}
	<script src="@Url.Content(prefix + specificJqueryJSReference)" type="text/javascript"></script>
	}
}
@if (layoutModel._DynamicJqueryJS != null)
{
	foreach (var dynamicJqueryJS in layoutModel._DynamicJqueryJS)
	{ 
	<script src="@Url.Content("~" + dynamicJqueryJS)" type="text/javascript"></script>
	}
}
<script type="text/javascript">
@{
	foreach (string variable in layoutModel._JSVariables)
	{
	@Html.Raw(variable);
	}
}
		$(document).ready(function () {
		$.fn.DocReady();
	});
</script>
</html>
